package com.apache.database.constant;

import java.io.File;
import java.util.UUID;

/**
 * 标点常量类
 * 
 */
public class StringPool {

	public static final String AMPERSAND = "&";

	public static final String APOSTROPHE = "'";

	public static final String AT = "@";

	public static final String BACK_SLASH = "\\";

	public static final String BLANK = "";

	public static final String CLOSE_BRACKET = "]";

	public static final String CLOSE_CURLY_BRACE = "}";

	public static final String COLON = ":";

	public static final String COMMA = ",";

	public static final String DASH = "-";

	public static final String EQUAL = "=";

	public static final String GREATER_THAN = ">";

	public static final String FORWARD_SLASH = "/";

	public static final String LESS_THAN = "<";

	public static final String NBSP = "&nbsp;";

	public static final String NEW_LINE = "\n";

	public static final String NOT_EQUAL = "!=";

	public static final String NULL = "null";

	public static final String OPEN_BRACKET = "[";

	public static final String OPEN_CURLY_BRACE = "{";

	public static final String PERCENT = "%";

	public static final String PERIOD = ".";

	public static final String PIPE = "|";

	public static final String POUND = "#";

	public static final String QUESTION = "?";

	public static final String QUOTE = "\"";

	public static final String SEMICOLON = ";";

	public static final String SLASH = FORWARD_SLASH;

	public static final String SPACE = " ";

	public static final String STAR = "*";

	public static final String TILDE = "~";

	public static final String UNDERLINE = "_";

	public static final String FILE_SEPARATOR = File.separator;

	public static final String NODE_PATH_TEMPLATE = "xx" + FILE_SEPARATOR + "xx" + FILE_SEPARATOR
			+ "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";

	/**
	*获取UUID主键生成器的方法
	*生成规则：32位字符串由本机的IP+时间无符号右移8位（当前中时间）+当前短时间+当前长时间+计数器 组成
	*
	*@return 返回UUID32位字符串
	*/
	public synchronized static String generate() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}

}
